import request from '@/utils/request'

import type {
  IpInfoReq,
  IpInfoRet
} from './types'

//项目用户相关的请求地址

enum API {
  //获取ip
  GET_IP = '/tool/getIpInfo'
}
//获取ip
export const getIp = (data: IpInfoReq) => request.get<any, IpInfoRet>(API.GET_IP + '?ip=' + data.ip)